Skip to content

fix type hint in DiffusionConfig and remove Literal#1088

Merged
OngChia merged 2 commits intomainfrom
fix_types_in_DiffusionConfig
Mar 3, 2026
Merged

fix type hint in DiffusionConfig and remove Literal#1088
OngChia merged 2 commits intomainfrom
fix_types_in_DiffusionConfig

Conversation

@OngChia
Copy link
Copy Markdown
Contributor

@OngChia OngChia commented Mar 3, 2026

Remove Valid** type Literal declaration for the config parameters DiffusionType, SmagorinskyStencilType, TemperatureDiscretizationType, and TurbulenceShearForcingType in DiffusionConfig after this PR#1079 was merged. They are unnecessary because they are all Enum type (refer to comments in this PR#1086).
Moreover, this PR fixes some additional places where type_t_diffu (TemperatureDiscretizationType) and type_vn_diffu (SmagorinskyStencilType) are still passed as int.

@OngChia OngChia requested review from edopao, egparedes and msimberg March 3, 2026 01:20
@OngChia
Copy link
Copy Markdown
Contributor Author

OngChia commented Mar 3, 2026

cscs-ci run default

@OngChia
Copy link
Copy Markdown
Contributor Author

OngChia commented Mar 3, 2026

cscs-ci run distributed

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 3, 2026

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default
  • cscs-ci run distributed

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark-bencher

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

To run test levels ignored by the default test suite (mostly simple datatest for static fields computations) you can use:

  • cscs-ci run extra

For more detailed information please look at CI in the EXCLAIM universe.

@OngChia
Copy link
Copy Markdown
Contributor Author

OngChia commented Mar 3, 2026

cscs-ci run default

@OngChia
Copy link
Copy Markdown
Contributor Author

OngChia commented Mar 3, 2026

cscs-ci run distributed

1 similar comment
@OngChia
Copy link
Copy Markdown
Contributor Author

OngChia commented Mar 3, 2026

cscs-ci run distributed

@OngChia
Copy link
Copy Markdown
Contributor Author

OngChia commented Mar 3, 2026

cscs-ci run default

@OngChia OngChia changed the title fix remaining wrong type and remove Literal fix type hint in DiffusionConfig and remove Literal Mar 3, 2026
Copy link
Copy Markdown
Contributor

@msimberg msimberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @OngChia!

@OngChia OngChia merged commit d33989d into main Mar 3, 2026
48 checks passed
jcanton added a commit that referenced this pull request Mar 3, 2026
* main:
  Remove `vct_b` bindings only (#1082)
  Replace `pg_edgeidx_dsl` mask by multiplying with 0.0 (#1053)
  Replace `mask_hdiff` by multiplying with 0.0 (#1056)
  fix type hint in DiffusionConfig and remove Literal (#1088)
  muphys: graupel py2fgen bindings (#1073)
  Fix mypy warnings for DiffusionConfig (#1086)
  Add tracer advection to standalone driver [cycle 34] (#1039)
  Reject namelist parameters not supported (#1079)
  Update to gt4py v1.1.6 (#1081)
  Merge bdy halo stencils (#1066)
  Enable gauss3d experiment for distributed tests (#1013)
  Reenable MPS in CI (#1057)
  Don't compute RBF coefficients over whole domain to avoid non-positive definite matrices (#1077)
  muphys: Only write the surface level of the fluxes (#995)
  Update to gt4py v1.1.5 (#1072)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants